
const { createWebAPIRequest } = require('../../util/util')
module.exports = [
  {
    /**
    * @api {get} /music/event [获取动态]
    * @apiGroup Music
    * @apiPermission none
    */
    url: '/music/event',
    request: (req, res) => {
      const cookie = req.get('Cookie') || ''
      const data = {
        csrf_token: ''
      }
      createWebAPIRequest(
        'music.163.com',
        '/weapi/v1/event/get',
        'POST',
        data,
        cookie,
        musicReq => res.send(musicReq),
        err => res.status(500).send({err})
      )
    }
  }
]
